package com.freesky.provider.order.service;


import com.freesky.common.dao.entity.Address;
import com.freesky.common.utils.reponse.JSONResponse;

/**
 * @author Freesky
 */
public interface IAddressService {

    /**
     * 获取地址
     * @param userId
     * @return
     */
    JSONResponse getAddressList(Long userId);

    /**
     * 获取单个
     * @param addressId
     * @return
     */
    JSONResponse getAddress(Long addressId);

    /**
     * 添加
     * @param address
     * @return
     */
    JSONResponse addAddress(Address address);

    /**
     * 更新
     * @param address
     * @return
     */
    JSONResponse updateAddress(Address address);

    /**
     * 删除
     * @param address
     * @return
     */
    void delAddress(Address address);
}
